package com.xuecheng.manage_cms.config;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 标题：
 * 作者：何处是归程
 * 时间：2020/2/29 - 9:50
 */
@Configuration
public class RabbitmqConfig {
	//交换机的名称
	public static final String EX_ROUTING_CMS_POSTPAGE = "ex_routing_cms_postpage";

	@Bean(EX_ROUTING_CMS_POSTPAGE)
	public Exchange EXCHANGE_TOPICS_INFORM() {
		return ExchangeBuilder.directExchange(EX_ROUTING_CMS_POSTPAGE).durable(true).build();
	}
}
